package com.ysccc.shares.web.vo;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;

public class SharesResponse {

	public static <T> ResponseEntity<T> success(T vo) {
		return new ResponseEntity<T>(vo, HttpStatus.OK);
	}
	
	public static ResponseEntity<String> success() {
		return new ResponseEntity<String>("操作成功", HttpStatus.OK);
	}
	
	public static ResponseEntity<String> fail() {
		return new ResponseEntity<String>("操作失败", HttpStatus.INTERNAL_SERVER_ERROR);
	}
}
